<template>
<div class="my">
<div class="header">
<van-nav-bar
  title="我的瓜子"
  left-text=""
  right-text=""
  left-arrow
  @click-left="left"
/>
<p class="ppp">您好,135****2665</p>
  <p class="p1" @click="login">切换账号</p>
<div class="contain">
  <h6 class="H6">12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16</h6>
  <p class="p2">我的收藏&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的对比</p>
</div>
</div>
<div class="main">
  <div class="empty"></div>
  <div class="mine">
    <div class="a">我的订单</div>
    <div class="b">我买的车</div>
    <div class="c">我卖的车</div>
  </div>
  <div class="empty1"></div>
  <div class="more">
    <h3>更多服务</h3>
    <ul>
      <li class="li1" @click="jump">联系客服</li>
      <li class="li2">优惠券</li>
    </ul>
  </div>
  <button @click="login">退出登录</button>
</div>
</div>
</template>

<script>
export default {
  name: 'AppMy',
  methods: {
    login() {
      this.$router.push('/login')
    },
    jump() {
      this.$router.push('/dialog')
    },
    left() {
      this.$router.go(-1)
    },
  },
}
</script>

<style lang="scss" scoped>
.header{
    background: url(https://sta.guazistatic.com/ucenter/img/wap_bg_personal_center@3x.210c7e1.png) no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 444px;
    p{
      font-size: 18px;
      color: white;
      font-weight: 600;
      letter-spacing: 1px;
      float: left;
      margin-top: 1.196rem;
      margin-left: 0.76rem;
    }
    .p1{
      font-size: 12px;
      font-weight: normal;
      float: left;
      margin-left: 120px;
      margin-top: 98px;
      border: 1px white;
      }
    .contain{
      height: 150px;
      width: 90%;
      // margin: 0 auto;
      background-color: #fff;
      margin-top: 200px;
      margin-left: 36px;
      // z-index: 9999;
      position: absolute;
      border-radius: 5%;
      .H6{
        // background-color: yellow;
        float: left;
        font-size: 20px;
        margin-left: 90px;
        margin-top: 40px;
      }
      .p2{
        color: black;
        margin-top: 1.3rem;
        font-size: 10px;
        font-weight: normal;
        margin-left: -3.18rem;
        // background-color: yellow;
      }
    }
}
.main{
  width: 100%;
  min-height: 800px;
  position: relative;
  background-color: #f6f7fa;
  .empty{
    height: 10px;
    width: 100%;
    background-color: #f6f7fa;
    margin-top: 20px;
    position: absolute;
    z-index: 1111;
  }
  .mine{
    background-color: #fff;
    height: 260px;
    width: 90%;
    margin-left: 36px;
    margin-top: 20px;
    position: absolute;
    top: 30px;
    border-radius: 5%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    .a{
      width: 120px;
      height: 70px;
      // background-color: yellow;
      font-size: 12px;
      padding-top: 120px;
      background: url(https://image1.guazistatic.com/qn210819180823c436897f1e96180f3c0cba3b441a607d.png) no-repeat;
      background-size: 100% 60%;
    }
    .b{
      width: 120px;
      height: 70px;
      // background-color: yellow;
      font-size: 12px;
      padding-top: 120px;
      background: url(https://image1.guazistatic.com/qn2108191808233db33083be0de4ed978c4f2889282219.png) no-repeat;
      background-size: 100% 60%;
    }
    .c{
      width: 120px;
      height: 70px;
      // background-color: yellow;
      font-size: 12px;
      padding-top: 120px;
      background: url(https://image1.guazistatic.com/qn2108191808230c9a9c04ebc9c5ffd64c124bdcc21b58.png) no-repeat;
      background-size: 100% 60%;
    }
  }
  .empty1{
    width: 100%;
    height: 15px;
    background-color: #f6f7fa;
    margin-top: 290px;
    position:absolute
  }
  .more{
    width: 90%;
    height: 300px;
    background-color: white;
    margin-left: 36px;
    position: absolute;
    margin-top: 300px;
    h3{
      float: left;
      margin-top: 30px;
      margin-left: 20px;
    }
    ul{
      width: 300px;
      height: 100px;
      text-align: letf;
      // background-color: red;
      line-height: 200px;
      margin-top: 140px;
      position: absolute;
      margin-left: 30px;
      display: flex;
      justify-content: space-between;
      font-size: 14px;
    }
    .li1{
      background: url(https://image1.guazistatic.com/qn21081918082351cf6ac4233e31892e3e3d94a117f961.png) no-repeat 0.27rem 0;
      background-size: 60% 60%;
    }
    .li2{
      background: url(https://image1.guazistatic.com/qn210911190117a033e36a599421ce64b70dfe81042be7.png) no-repeat 0.27rem 0;
      background-size: 60% 60%;
    }
  }
  button{
    position: absolute;
    margin-top: 650px;
    width: 90%;
    margin-left: 32px;
    background-color: #fff;
    border: none;
    height: 80px;
    font-size: 14px;
    font-weight: 600px;
  }
}
</style>
